STEP 3: Let's display area on the stage, so we can see it change later!

  • In the LOGIC tab, click on and drop Variable Display at the bottom of your code.
  • Change the variable name of the display from my_display to rect_display.
  • Change the variable argument in codesters.Display() from my_var to rect_area.
  • Change the coordinate arguments in .Display() from -200, 150 to 30, 10.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)